package com.game.sharding.controller;

import com.game.sharding.dao.TeamMsgDao;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * <p>
 * <p/>
 *
 * @author luowj
 * @version 1.0
 * @since 2024/7/23 14:23
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @Resource
    private TeamMsgDao teamMsgDao;

    @GetMapping("/id")
    public String test(Long id) {
        return teamMsgDao.selectMsgById(id).toString();
    }

}
